#include <stdio.h>
#include <string.h>
void Reverse(char* str)
{
    char* left = str;
    char* right = str+strlen(str)-1;
    char a = 0;
    while (left < right)
    {
        a=*left;
        *left = *right;
        *right= a;
        right--;
        left++;
    }
}
int main() {
    char str[10000] = { 0 };
    gets(str);
        Reverse(str);
        printf("%s\n", str);
        return 0;
}
